package com.yd.domain.business;

import com.yd.domain.commom.DomainObject;

import java.util.Date;
import java.util.List;

/**
 * @author sunxianhui
 * @create 2018-03-09 9:23
 * @desc 订单--货品详细信息
 **/
public class OrderDetial extends DomainObject<OrderDetial> {
    private List<OrderGoods> goods;
    private Boolean ifCoupon; //是否使用优惠券
    private Float totalPrice;//总价格
    private Float totalWeight;//总重量
    private Float dealPrice;//交易价格
    private String couponId;//优惠券id
    private String content;//备注信息
    private int couNumber;//优惠券剩余数量

    public int getCouNumber() {
        return couNumber;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setCouNumber(int couNumber) {
        this.couNumber = couNumber;
    }

    public List<OrderGoods> getGoods() {
        return goods;
    }

    public void setGoods(List<OrderGoods> goods) {
        this.goods = goods;
    }

    public Boolean getIfCoupon() {
        return ifCoupon;
    }

    public void setIfCoupon(Boolean ifCoupon) {
        this.ifCoupon = ifCoupon;
    }

    public Float getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Float totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Float getTotalWeight() {
        return totalWeight;
    }

    public void setTotalWeight(Float totalWeight) {
        this.totalWeight = totalWeight;
    }

    public Float getDealPrice() {
        return dealPrice;
    }

    public void setDealPrice(Float dealPrice) {
        this.dealPrice = dealPrice;
    }

    public String getCouponId() {
        return couponId;
    }

    public void setCouponId(String couponId) {
        this.couponId = couponId;
    }

    @Override
    public String toString() {
        return "OrderDetial{" +
                "goods=" + goods +
                ", ifCoupon=" + ifCoupon +
                ", totalPrice=" + totalPrice +
                ", totalWeight=" + totalWeight +
                ", dealPrice=" + dealPrice +
                ", couponId='" + couponId + '\'' +
                ", content='" + content + '\'' +
                ", couNumber=" + couNumber +
                '}';
    }
}
